﻿using System;
class DivisionCheck
{
    static void Main()
    {
        int testnumber;
        Console.Write("Input Number: ");
        while (true)
        {
            try
            {
                testnumber = int.Parse(Console.ReadLine());
                break;
            }
            catch (Exception ex)
            {
                Console.Write(ex.Message + "\nPlease re-enter number:");
            }
        }
        if ((testnumber % 5 == 0) && (testnumber % 7 == 0))
        {
            Console.WriteLine("The number CAN be divided by 5 AND 7 without remainder");
            Console.ReadLine();
        }
        else
        {
            Console.WriteLine("The number CAN NOT be divided by 5 AND 7 without remainder");
            Console.ReadLine();
        }
    }
}

